package org.stu.tp.util;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;

public class Property {
	
	
	public String getProerty(String propertfile,String key){
		Properties props = new Properties();
		String value="";
		try {
			InputStream in = new BufferedInputStream(new FileInputStream(
					propertfile));
			props.load(in);
			value = props.getProperty(key);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return value;
	}
}
